// 派发表示
const _dispatchIdentifier = (slice: string, action: string) => `${slice}/${action}`;

const createAction = function (slice: string) {
    return (action: string) => {
        return {
            action,
            identifier: _dispatchIdentifier(slice, action),
        };
    };
};

export { createAction };
